package com.diy.sigmund.diyorder.common.spring.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author ylm-sigmund
 * @since 2021/5/13 0:19
 */
@Component
public class CustomRocketMQConfig {

    /**
     * <br>ip:port
     * <br>指定namesrv服务地址，获取broker相关信息
     */
    @Value("${custom.rocketmq.namesrvAddr}")
    String nameSrvAddr;

    public String getNameSrvAddr() {
        return nameSrvAddr;
    }
}
